package com.lhkj.ct.framework.shiro.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

/**
 * shiro权限配置
 */

@Component
@ConfigurationProperties(prefix = "shiro")
public class ShiroProperties implements Serializable {

    /**
     * 校验路径配置、默认全路径
     */
    private List<String> auth = Collections.singletonList("/**");

    /**
     * 过滤路径配置、默认过滤api文档
     */
    private List<String> anon = Collections.singletonList("/doc.html");

    public List<String> getAuth() {
        return auth;
    }

    public void setAuth(List<String> auth) {
        this.auth = auth;
    }

    public List<String> getAnon() {
        return anon;
    }

    public void setAnon(List<String> anon) {
        this.anon = anon;
    }

}
